package com.yunji.framework_template.orm.persistence.model;

import java.util.Date;

public class Game {

    private Integer id;

    private String  name;

    private String  nameNoSpace;

    private String  icon;

    private String  url;

    private Date    added;
    
    private Integer times;

    private String description;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getAdded() {
        return added;
    }

    public void setAdded(Date added) {
        this.added = added;
    }

    public String getNameNoSpace() {
        if (name != null) {
            return name.trim().replace(" ", "");
        }
        return nameNoSpace;
    }
    
    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}
